Find All Duplicates In An Array - Leetcode 442 - Python